package com.itheima.service.impl;

import com.itheima.dao.UserDao;
import com.itheima.dao.impl.UserDaoImpl;
import com.itheima.domain.User;
import com.itheima.service.UserService;
/*
    业务层实现类
 */
public class UserServiceImpl implements UserService {
    //重写UserService接口的login方法
    @Override
    public User login(String username, String pwd,String realPath) {
        //创建持久化层对象
        UserDao userDao = new UserDaoImpl();
        //将持久化层返回的用户对象返回给Servlet
        return userDao.login(username,pwd,realPath);
    }
}
